package diaosidadui.test2;

/*
打印m到n之间的偶数
 */
public class Test02 {
    public static void main(String[] args) {

        int n = 20, m = 50;
        evenNum(n, m);


    }

    public static void evenNum(int n, int m) {
        for (int i = n; i < m; i++) {
            if (i % 2 == 0) {
                System.out.println(i);
            }

        }
    }
}
